<%@ page contentType="text/html; charset=utf-8" %>

<%@ include file="/WEB-INF/jsp/includeTaglib.jsp" %>
<%@ include file="/WEB-INF/jsp/includeCss.jsp" %>
<%@ include file="/WEB-INF/jsp/includeJs.jsp" %>

<table width="100%" border="0" cellpadding="0" cellspacing="5">
  <tr>
    <td valign="top">
      <table class="dbborder" width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="bottom" class="blueTableBg">&nbsp;配置管理&nbsp;-&nbsp;新增步骤标识</td>
        </tr>
        <tr>
          <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="5">
              <tr>
                <td>
                  <form target="tempFrame" method="post" id="saveStepIdentityBtn" action="<c:url value='/admin/stepIdentityEdit.html' />">
                  		<table width="100%" border="0" cellpadding="0" cellspacing="0">
	                    <tr>
	                      <td class="dashTopLeft"><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
	                      <td class="dashTop" width=100%><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
	                      <td class="dashTopRight"><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
	                    </tr>
	                    <tr>
	                      <td class="dashLeft"><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
	                      <td align="center">
	                        <table width="100%" border="0" cellpadding="0" cellspacing="3">
	                          <tr>
	                            <td width="114" height="20" class="globalText">数据类型 </td>
	                            <td height="20" class="globalText">

	                            				<c:choose>
									          		<c:when test="${taskActionDataType.actionId==1}">
									          			<c:set var="actionName" value="拍照" ></c:set>
									          		</c:when>
									          		<c:when test="${taskActionDataType.actionId==2}">
									          			<c:set var="actionName" value="输入文本" ></c:set>
									          		</c:when>
									          		<c:when test="${taskActionDataType.actionId==3}">
									          			<c:set var="actionName" value="输入数值" ></c:set>
									          		</c:when>
									          		<c:when test="${taskActionDataType.actionId==4}">
									          			<c:set var="actionName" value="单选框" ></c:set>
									          		</c:when>
									          		<c:when test="${taskActionDataType.actionId==5}">
									          			<c:set var="actionName" value="多选框" ></c:set>
									          		</c:when>
									          		<c:when test="${taskActionDataType.actionId==6}">
									          			<c:set var="actionName" value="评分" ></c:set>
									          		</c:when>
									          		<c:when test="${taskActionDataType.actionId==7}">
									          			<c:set var="actionName" value="上传附件" ></c:set>
									          		</c:when>
									          		<c:when test="${taskActionDataType.actionId==9}">
									          			<c:set var="actionName" value="完成" ></c:set>
									          		</c:when>
									          	</c:choose>

									<input type="hidden" name="id" value="${taskActionDataType.id}"/>
	                            	<input readonly="readonly"  value="${actionName}"/>
	                            </td>
	                          </tr>
	                          <tr>
	                            <td width="114" height="20" class="globalText">步骤名称</td>
	                            <td height="20" class="globalText">
	                            	<input  class="txtbox required" size="20" name="actionName" value="${taskActionDataType.name}" />
	                            </td>
	                          </tr>
	                          <tr>
	                            <td align="center" colspan="2">
	                              <table border="0" cellpadding="0" cellspacing="2">
	                                <tr>
	                                  <td><input onclick="javascript:$('#saveStepIdentityBtn').submit();" type="button" name="saveBtn" class="btnStyle" value="  保存  "></td>
	                                  <td>
	                                  	<input onclick="javascript:window.history.back();" type="button" class="btnStyle" value=" 返回  ">
	                                  </td>
	                                </tr>
	                              </table>
	                            </td>
	                          </tr>
	                        </table>
	                      </td>
	                      <td class="dashRight"><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
	                    </tr>
	                    <tr>
	                      <td class="dashBottomLeft"><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
	                      <td class="dashBottom" width=100%><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
	                      <td class="dashBottomRight"><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
	                    </tr>
	                  </table>
                  </form>

                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<script>
	function submitCallbackSuccess(obj){
		window.location="<c:url value='/admin/stepIdentityList.html' />";
	}

	$().ready(function() {
		var validate=$("#saveStepIdentityBtn").validate({
			showErrors: customShowErrors,
			onfocusout:false,
			onkeyup:false,
			onclick:false
		});
	});

</script>
